<?php
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2017/8/18
 * Time: 15:30
 */

namespace app\admin\controller;

use app\admin\model\Category;
use app\admin\model\Content;
use think\Controller;

class Index extends Controller
{
    //TODO 授权
    public function index()
    {
        $list = Content::where('')->paginate(10);
        $this->view->assign("list", $list);
        return $this->fetch("index");
    }
}